using UnityEngine;
using System.Reflection;
using System;

public class EditorUtils
{
    public static void ClearConsole()
    {
#if UNITY_EDITOR
        Assembly assembly = Assembly.GetAssembly(typeof(UnityEditor.SceneView));
        Type logEntries = assembly.GetType("UnityEditor.LogEntries");
        MethodInfo clearConsoleMethod = logEntries.GetMethod("Clear");
        clearConsoleMethod.Invoke(new object(), null);
#endif
    }
}
public class EditorDebug
{
    public static void Log<T>(T message)
    {
#if UNITY_EDITOR
        Debug.Log(message);
#endif
    }

    public static void LogError<T>(T message)
    {
#if UNITY_EDITOR
        Debug.LogError(message);
#endif
    }
}
